import Request from '@/utils/request'
import type { CommentInfo } from '@/types/comment'

/**
 * 获取评论
 */
export const getCommentInfo = (params: any) => {
  return Request.get<CommentInfo[]>('/admin/getcomment', {
    params
  })
}

/**
 * 删除评论
 */
export const delComment = (id: number) => {
  return Request.delete<null>(`/interact/comment/${id}`)
}
